<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AddChannelStatCallTable extends Migration
{
    protected $connection = 'stat';

    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('stat_daily_call', function (Blueprint $table) {
            $table->char('channel', 10)->default('')->comment('注册渠道')->after('dt');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('stat_daily_call', function (Blueprint $table) {
            //
        });
    }
}
